package com.loan.job.service;

import com.loan.system.service.BankService;
import com.loan.system.service.UserService;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author shiguang
 * @date 2022年09月22日 23:47
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class HqpayBankService {

    private final BankService bankService;

    /**
     * 获取运营商报告
     * @throws Exception
     */
    @XxlJob("getHqpayBankIdHandler")
    public void updateHqpayBankId() throws Exception {
        XxlJobHelper.log("run getHqpayBankIdHandler.");
        bankService.updateHqpayBankId();
    }
}
